<?php
/**
 * 
 * Manufacturer Model
 * @author StormGeoff
 *
 */
use Illuminate\Database\Eloquent\SoftDeletingTrait;

class Manufacturer extends Eloquent {

	use SoftDeletingTrait;
	
	protected $dates = ['deleted_at'];

	protected $table = 'manufacturer';

	/**
	 * Condition: Unarchived Items.
	 * @author AngelaMisa 02/22/2015 2:25AM
	 * @param $query
	 * @return mixed
	 */
	public function scopeActive( $query ) {
		return $query->where($this->table . '.archived', 0);
	}
}